package com.fafi.spring.configuration;

import com.fafi.spring.condition.SelfCondition;
import com.fafi.spring.test.bean.SimpleBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SelfConditionConfig {

	@Conditional(SelfCondition.class)
	@Bean
	public SimpleBean simpleBean() {
		return new SimpleBean();
	}
}
